const mongoose = require('mongoose')

const Schema = mongoose.Schema

mongoose.connect("mongodb://localhost/shopUser", { useNewUrlParser: true })

const stateSchema = new Schema({
    uname: String,
    storeFlag: String,
    state:{
        type: Object,
        required: true
    }
   
})

module.exports = mongoose.model('state', stateSchema)